package com.jifen.user.dao;

import com.jifen.common.BaseDao;
import com.jifen.user.entity.UserInviteProfit;
import com.jifen.user.vo.UserInviteProfitVo;
import com.jifen.user.vo.UserParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInviteProfitDao extends BaseDao<UserInviteProfit> {

    /**
     * 总收益
     * @param uid
     * @param date
     * @param qtype
     * @return
     */
    Double sumProfit(@Param("uid")int uid, @Param("date")String date, @Param("qtype") String qtype);

    /**
     * 收益明细
     * @param param
     * @return
     */
    List<UserInviteProfitVo> getProfits(UserParam param);
}
